package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbPsContent entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PS_CONTENT", schema = "dbo", catalog = "AGDB")
public class TbPsContent implements java.io.Serializable {

	// Fields

	private String pscId;
	private TbLogType tbLogType;
	private TbPlanStep tbPlanStep;
	private String pscContent;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbPsContent() {
	}

	/** minimal constructor */
	public TbPsContent(String pscId, TbPlanStep tbPlanStep, String pscContent) {
		this.pscId = pscId;
		this.tbPlanStep = tbPlanStep;
		this.pscContent = pscContent;
	}

	/** full constructor */
	public TbPsContent(String pscId, TbLogType tbLogType,
			TbPlanStep tbPlanStep, String pscContent, String a, String b,
			String c) {
		this.pscId = pscId;
		this.tbLogType = tbLogType;
		this.tbPlanStep = tbPlanStep;
		this.pscContent = pscContent;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "PSC_ID", unique = true, nullable = false, length = 10)
	public String getPscId() {
		return this.pscId;
	}

	public void setPscId(String pscId) {
		this.pscId = pscId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LT_ID")
	public TbLogType getTbLogType() {
		return this.tbLogType;
	}

	public void setTbLogType(TbLogType tbLogType) {
		this.tbLogType = tbLogType;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PS_ID", nullable = false)
	public TbPlanStep getTbPlanStep() {
		return this.tbPlanStep;
	}

	public void setTbPlanStep(TbPlanStep tbPlanStep) {
		this.tbPlanStep = tbPlanStep;
	}

	@Column(name = "PSC_CONTENT", nullable = false, length = 4000)
	public String getPscContent() {
		return this.pscContent;
	}

	public void setPscContent(String pscContent) {
		this.pscContent = pscContent;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}